/**
 * 服务团队管理仪表板 Mock 数据
 */

// 用户信息
export const userInfo = {
  name: '陈伟倩',
  role: '二组长',
  phone: '18245518495',
  avatar: 'https://i.pravatar.cc/150?img=1'
}

// 统计数据
export const statistics = {
  totalMembers: 56, // 团队总成员数
  totalClients: 541312, // 团队总客户数
  monthCompletionRate: 19, // 本月完成比例
  quarterCompletionRate: 36, // 本季度完成比例
  yearCompletionRate: 45 // 本年度完成比例
}

// 评价统计
export const evaluationStats = {
  score: 4.1, // 评价分数
  totalEvaluations: 56 // 评价总数
}

// 国访趋势数据（2024年和2025年对比）
export const trendData = {
  months: ['2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月'],
  data2024: [45, 52, 48, 58, 65, 62, 70, 68, 75],
  data2025: [50, 58, 55, 65, 72, 70, 78, 75, 82]
}

// 评价包服务事项排序
export const serviceRanking = [
  {
    rank: 1,
    name: '残疾人大学学校校外,小学教学新',
    visits: 6572,
    evaluations: 654,
    score: 4.80
  },
  {
    rank: 2,
    name: '残疾人学生全日制高等教育学教学新',
    visits: 5642,
    evaluations: 742,
    score: 4.68
  },
  {
    rank: 3,
    name: '由海洋局儿童青少年健康生态检测项',
    visits: 6421,
    evaluations: 678,
    score: 4.59
  },
  {
    rank: 4,
    name: '残疾人就其活动牌证服务',
    visits: 3216,
    evaluations: 543,
    score: 4.50
  },
  {
    rank: 5,
    name: '残疾人新入企业职业介绍',
    visits: 3654,
    evaluations: 542,
    score: 4.39
  }
]

// 评价包服务事项排序
export const packageServiceRanking = [
  {
    rank: 1,
    name: '残疾预防与康复服务',
    visits: 6572,
    evaluations: 654,
    score: 3.22
  },
  {
    rank: 2,
    name: '白内障康复与术后护理',
    visits: 5642,
    evaluations: 742,
    score: 3.51
  },
  {
    rank: 3,
    name: '精神残疾人康复训练服务',
    visits: 6421,
    evaluations: 678,
    score: 3.68
  },
  {
    rank: 4,
    name: '残疾人就其辅助服务',
    visits: 3216,
    evaluations: 543,
    score: 3.72
  },
  {
    rank: 5,
    name: '残疾人文化"与"运动知识科普',
    visits: 3654,
    evaluations: 542,
    score: 3.77
  }
]

// 评价最高的地区
export const topRegions = [
  {
    rank: 1,
    region: '西湖区',
    visits: 6572,
    evaluations: 654,
    avgScore: 4.80
  },
  {
    rank: 2,
    region: '拱墅区',
    visits: 5642,
    evaluations: 742,
    avgScore: 4.68
  },
  {
    rank: 3,
    region: '滨江区',
    visits: 6421,
    evaluations: 678,
    avgScore: 4.59
  },
  {
    rank: 4,
    region: '萧山区',
    visits: 3216,
    evaluations: 543,
    avgScore: 4.50
  },
  {
    rank: 5,
    region: '上城区',
    visits: 3654,
    evaluations: 542,
    avgScore: 4.39
  }
]

// 评价最低的地区
export const bottomRegions = [
  {
    rank: 1,
    region: '西湖区',
    visits: 6572,
    evaluations: 654,
    avgScore: 3.09
  },
  {
    rank: 2,
    region: '拱墅区',
    visits: 5642,
    evaluations: 742,
    avgScore: 3.12
  },
  {
    rank: 3,
    region: '滨江区',
    visits: 6421,
    evaluations: 678,
    avgScore: 3.13
  },
  {
    rank: 4,
    region: '萧山区',
    visits: 3216,
    evaluations: 543,
    avgScore: 3.20
  },
  {
    rank: 5,
    region: '上城区',
    visits: 3654,
    evaluations: 542,
    avgScore: 3.30
  }
]

// 模拟 API 响应
export const mockDashboardData = () => {
  return new Promise((resolve) => {
    setTimeout(() => {
      resolve({
        meta: {
          success: true,
          message: '获取数据成功'
        },
        data: {
          userInfo,
          statistics,
          evaluationStats,
          trendData,
          serviceRanking,
          packageServiceRanking,
          topRegions,
          bottomRegions
        }
      })
    }, 500) // 模拟网络延迟
  })
}
